﻿namespace GreenIsomer.Web.Controls.JQuery {

	/// <summary>
	/// Defines the contract needed by the jQuery PropertyCollection to render complex types based on specific values.
	/// This interface is typically used by control developers and should be implemented explicitly.
	/// </summary>
	public interface IComplexProperty {


		#region Methods

		/// <summary>
		/// Signature called by the jQuery PropertyCollection to render the complex type based on current value.
		/// This interface method is typcally used by control developers.
		/// </summary>
		/// <param name="properties">The GreenIsomer.Web.Controls.PropertyCollection to which to render values.</param>
		/// <param name="name">The name of the property to use for rendering.</param>
		void AddPropertyValue(PropertyCollection properties, string name);

		#endregion


	}

}